package com.kh.statistics.video.service;

import com.kh.statistics.video.entity.Accounts;
import com.kh.statistics.video.entity.VideoAccountStatusVO;
import com.kh.statistics.video.entity.VideoAccountsLogin;

import java.io.IOException;
import java.util.List;

/**
 * @BelongsProject: statistics
 * @BelongsPackage: com.kh.statistics.video.service
 * @Author: Hong.Kong
 * @CreateTime: 2024-05-11  14:03
 * @Description: TODO
 * @Version: 1.0
 */
public interface VideoAccountsService {
    void add(Accounts accounts);

    List<Accounts> search(Accounts accounts);

    /**
     * 根据id 删除账号信息
     *
     * @param accounts
     * @return
     */
    Boolean deleteById(Accounts accounts);

    /**
     * 登录
     *
     * @param videoAccountsLogin
     * @return
     * @throws IOException
     */
    Boolean login(VideoAccountsLogin videoAccountsLogin) throws IOException;

    /**
     * 删除账号
     *
     * @param accounts
     * @return
     */
    Boolean update(Accounts accounts);

    /**
     * 查询账号登录状态
     *
     * @return
     */
    List<VideoAccountStatusVO> searchAccountStatusList();

}
